<?php
/**
 * 问题反馈控制器:前台
 * Created by PhpStorm.
 * User: zxj
 * Date: 17/5/1
 * Time: 上午9:46
 */

namespace App\Http\Controllers\Home;

use App\Models\Response;

class ResponseController extends BaseController
{
    public function __construct(Response $response)
    {
        parent::__construct();
        $this->response = $response;
    }


    /**
     * @return \Illuminate\Http\JsonResponse
     *
     * 前台添加问题控制器
     *
     */
    public function postAddResponse(){

        //echo '123';die();
        $data = $this->response->AddResponse(request());
        return ajax_return($data);
    }

    /**
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     *
     * 载入一个添加问题表单
     *
     */
    public function getAdd(){


        return view('home.problem.add');



    }






}